﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddSVRInfo.aspx.cs" Inherits="ClassRoomManagement_SVR_IPC_Management_AddSVRInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>创建SVR</title>
    <link href="../../Css/ys.css" rel="stylesheet" type="text/css" />
    <script src="../../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script>
        function ChkInput() {
            if ($("#txtSVRName").val() == "") {
                alert("请输入存储录像机名称！");
                return false;
            }
            if ($("#txtSVRIP").val() == "") {
                alert("请输入IP地址！");
                return false;
            }
            if ($("#txtSVRPort").val() == "") {
                alert("请输入端口号！");
                return false;
            }
            if ($("#txtSVRUser").val() == "") {
                alert("请输入用户名！");
                return false;
            }
            if ($("#txtSVRPwd").val() == "") {
                alert("请输入密码！");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="zt mainCenter">
        <div class="contentBody">
            <div class="title">
                存储录像机-->创建SVR信息</div>
            <br class="sp3px" />
            
        </div>
        <table style="width: 100%; color: #336699;" class="ta1">
        <tr>
            <td class="ta2 tag">
                存储录像机名称
            </td>
            <td class="ta2">
                <input type="text" id="txtSVRName" runat="server" class="inp1" />
            </td>
        </tr>
        <tr>
            <td class="ta2 tag">
                IP地址
            </td>
            <td class="ta2">
                <input type="text" id="txtSVRIP" runat="server" class="inp1" />
            </td>
        </tr>
        <tr>
            <td class="ta2 tag">
                端口号
            </td>
            <td class="ta2">
                <input type="text" id="txtSVRPort" runat="server" class="inp1" />
            </td>
        </tr>
        <tr>
            <td class="ta2 tag">
                用户名
            </td>
            <td class="ta2">
                <input type="text" id="txtSVRUser" runat="server" class="inp1" />
            </td>
        </tr>
        <tr>
            <td class="ta2 tag">
                密码
            </td>
            <td class="ta2">
                <input type="text" id="txtSVRPwd" runat="server" class="inp1" />
            </td>
        </tr>
        <tr>
            <td class="ta2 tag">
                使用状态
            </td>
            <td class="ta2">
                <asp:DropDownList ID="ddlSVRStatus" runat="server" Width="200px" CssClass="inp2">
                    <asp:ListItem Text="停止" Value="0"></asp:ListItem>
                    <asp:ListItem Text="运行" Value="1"></asp:ListItem>
                    <asp:ListItem Text="挂起" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td height="25" colspan="2">
                <asp:Button ID="btnAdd" runat="server" Text="保存" OnClick="btnAdd_Click" CssClass="button" OnClientClick="return ChkInput();">
                </asp:Button>
                &nbsp;
                <input type="button" value="返回" onclick="window.history.go(-1)" class="button" id="back"
                    runat="server">
            </td>
        </tr>
        </table>
    </div>
    </form>
</body>
</html>
